home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / umich / diskutil / reclaim2.zoo / reclaim.txt next >
Encoding:
Text File  |  1993-06-07  |  6.2 KB  |  101 lines

  1.  
  2.  
  3.   **********************************************************************
  4.   ***                                                                ***
  5.   ***                RECLAIM (Version_2 -- June 1993)                ***
  6.   ***                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~                ***
  7.   ***                                                                ***
  8.   ***            ( renders useable the 2 clusters that               ***
  9.   ***              TOS "loses" on formatted floppies )               ***
  10.   ***                                                                ***
  11.   ***        ( Freeware by W. Alan B. Evans [wabe@ukc.ac.uk] )       ***
  12.   ***                                                                ***
  13.   ***   ( May NOT be distributed without accompanying RECLAIM.TXT    ***
  14.   ***    NOR commercially distributed without Author's permission )  ***
  15.   ***                                                                ***
  16.   **********************************************************************
  17.  
  18.  
  19.     For some reason best known to Atari, TOS "wastes" 4 sectors (or 2
  20. 1024 byte clusters) of formatted disk space. For example, with the standard
  21. double-sided Atari format we have 1 bootsector, 2 sets of fats each 5
  22. sectors long and a root directory which is 7 sectors long. The disk is
  23. formatted to 80 9-sector tracks on both sides i.e. 1440 512-byte sectors
  24. in all. Since the "disk management" accounts for 18 of these, one might
  25. reasonably expect there would be 1422 left over to hold data i.e. we'd
  26. expect 711 clusters of data. But NO! - as is well-known there's only 709
  27. clusters available for data. What has TOS done with the other 2? I'm sure
  28. I don't know - I've never seen any explanation for this documented! But
  29. there _MAY_ be a good reason - and, IN CASE THERE IS, and in any case
  30. as this software is FREEWARE, I give NO GUARANTEES WHATSOEVER for any
  31. consequences that might arise out of using RECLAIM. Therefore, it would
  32. be wise to be wary (esp. with valuable data) until one has gained full
  33. confidence in the usage of RECLAIM. All I can say is that I have
  34. personally been using RECLAIM for some while with no adverse-effects.
  35.  
  36.     The idea for RECLAIM is originally in the RDY sourcecode of Mark
  37. Williams Co.'s "RDY" ramdisk utility. Whilst upgrading the latter recently
  38. (Version_4 of RDE is now available at a.a.) I noticed that a little trick
  39. which the author of RDY called a CLUSTERHACK allowed the ramdisk to reclaim
  40. these 2 lost clusters back from TOS. Basically the strategy is exceedingly
  41. simple viz. alter the boot parameter block info to signal a total sector
  42. number which is 4 more than actually exists and to MARKBAD the last two
  43. FAT clusters. It occurred to me that this might also work on Floppies
  44. and, indeed, it seems to. However I know of no formatter program that will
  45. format floppies in this "RECLAIMed" state.
  46.  
  47.     You can use a disk editor ( DISK DOCTOR, KNIFEST etc. ) to do the
  48. alterations. However, altering the format with a disk utility involves some
  49. intricate calculations to locate the last two fats' positions etc. etc.
  50. and a small error could cause loss of data. RECLAIM.TOS simplifies & speeds
  51. up this task. At the prompt you simply insert a normally formatted disk
  52. and RECLAIM will do these conversions and modify the disk so that you will
  53. end up with 2 kbytes more of free space on it. Of course, it checks to see
  54. if the disk has previously been altered and, in that event, will tell you
  55. and alter nothing. Note also that disks containing data can also have
  56. their missing sectors RECLAIMed - with no harm to the data.
  57.  
  58.     Beware though of utilities that wipe out the entire fat tables
  59. (e.g. DISK TOOL ( DT.TTP ) with option "-w" ). Most (all?) utilities that
  60. do this ignore the possible presence of MARKED BAD clusters. Hence using
  61. DT.TTP or similar will wipe out the MARKBAD marks and thereafter the disk
  62. would signal to TOS that it has valid sectors that, in fact, do not exist.
  63. In the same vein, if you use a Disk Utility sector editor (such as DISKDOC)
  64. you should not try to read the last four sectors declared by the BBPB (that
  65. don't really exist) else you may hear "grating" sounds from your diskdrive
  66. before TOS complains. If one uses the SEEKUP patch (by Martin Osieka) to cure
  67. the "grating" diskdrive sounds, which is a bug in TOS 2.06 when fitted to
  68. older ST's without HD-drives, one finds that trying to read nonexistent
  69. sectors results in the default values of whatever SEEKUP alters (FLOPRATE
  70. etc.) being re-established - so, if you must do this, be prepared to run
  71. SEEKUP again to keep your diskdrive "harmonious".
  72.  
  73.     After converting a disk with RECLAIM, one should strictly tell TOS
  74. that the media has been changed. RECLAIM _does_ do this though I see no
  75. great reason to, since all we've released are two clusters at the high end
  76. - so that the worse that can happen is that a file that should fit on your
  77. (enlarged) disk might actually fail to do so as TOS is unaware of the 2
  78. extra clusters.
  79.  
  80.     I know of no other pitfalls....(perhaps someone can enlighten me)
  81. but, meantime, good luck RECLAIMing what's rightfully yours! By the way,
  82. I've used the ICE packer to pack RECLAIM.TOS which "just" gets it below
  83. 2 clusters in size. How appropriate! - take a full floppy, apply RECLAIM
  84. to it, and your gained space is just enough to store RECLAIM.TOS!!
  85.  
  86. P.S.:    The last sentence applied before I added a check to see if there
  87. was any data on the disk - and, ONLY IF THERE IS NO DATA, RECLAIM gives
  88. you the option of changing the No. of Fat Sectors (FSIZE) and No. of Root
  89. directory sectors (ROOT) the default being NO CHANGE. As is well-realised
  90. 5 FAT-sectors is too much to cover all the usual Double sided formats (3
  91. is sufficient) - and so by trimming these down there is further scope for
  92. obtaining more DATA sectors. BUT, be careful here, TOS sometimes fails to
  93. recognise a media change, so if you keep swapping floppies with different
  94. management structures, it _MAY_ get confused. So my advice to beginners is
  95. to KEEP THE DEFAULT VALUES (FSIZE=5 and ROOT=7 usually) and just be content
  96. to RECLAIM the 2 lost clusters. So the program now is ~2800 bytes (ICE-
  97. packed) and calls itself RECLAIM V_2 ( V_1 was never distributed).
  98.  
  99. W. Alan B. Evans.       (June 93).
  100. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  101.